//first declare globals
var SEMF = {};

SEMF["page"] = {};
SEMF["sys"] = {};

// Handling the onEdit of TextBox32 
SEMF.TextBox32_onEdit = function()
{
SEMF.page._x = SEMF.page._x +  1 ;

 SEMF.doUpdatePage();
} // end of the function TextBox32_onEdit

// Handling the common page onLoad function 
SEMF.onLoad = function()
{

} // end of the function page onLoad

// Handling the onClick of Button177 (just for server request)
SEMF.Button177_onClick = function()
{
var varInOuts = ["pg_name", SEMF.page._name,
"pg_age", SEMF.page._age];
var tableInOuts = ["dt_newplayer", SEMF.listIdsFor("newplayer"),
"dt_player", SEMF.listIdsFor("player")];
var inherited = [];
if(arguments.length == 2 && arguments[0] == "params")
{
 inherited = arguments[1];
}
var functName = ["funct_name", "Button177_onClick"];
var paramArray = varInOuts.concat(tableInOuts, inherited, functName);
SEMF.request(SEMF.dataModelFileName,
{
  success: SEMF.handleSuccess,
  failure: SEMF.handleFailure,
  argument: {
	  ps: SEMF.onFinishDataUpdate
  },
  timeout: 5000,
  params: paramArray
});

} // end of the function Button177_onClick

// Handling the onClick of CheckBoxGroup38 (just for server request)
SEMF.CheckBoxGroup38_onClick = function()
{
var varInOuts = ["pg_x", SEMF.page._x];
var tableInOuts = ["dt_some_player", SEMF.listIdsFor("some_player"),
"dt_game", SEMF.listIdsFor("game")];
var inherited = [];
if(arguments.length == 2 && arguments[0] == "params")
{
 inherited = arguments[1];
}
var functName = ["funct_name", "CheckBoxGroup38_onClick"];
var paramArray = varInOuts.concat(tableInOuts, inherited, functName);
SEMF.request(SEMF.dataModelFileName,
{
  success: SEMF.handleSuccess,
  failure: SEMF.handleFailure,
  argument: {
	  ps: SEMF.onFinishDataUpdate
  },
  timeout: 5000,
  params: paramArray
});

} // end of the function CheckBoxGroup38_onClick

